
	
/****** Object:  Stored Procedure [dbo].tblUserUpdate    Script Date: Thursday, October 27, 2011 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sptblUserUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sptblUserUpdate]
GO

	
	

	
/******************************************************************************
**		File: 
**		Name: [dbo].sptblUserUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 27/10/2011 17:41:39
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].sptblUserUpdate
	@Peoplewise varchar(7), 
	@UserName varchar(20), 
	@Email varchar(50), 
	@LastLoginDate datetime, 
	@Role int, 
	@Status int 
AS

UPDATE [dbo].[tblUser] SET
	[UserName] = @UserName,
	[Email] = @Email,
	[LastLoginDate] = @LastLoginDate,
	[Role] = @Role,
	[Status] = @Status
WHERE
	[Peoplewise] = @Peoplewise

GO
